@import './base/fn.less';
@navbarPrefixCls: oreo-navbar;
.@{navbarPrefixCls} {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: @navbar-height;
    padding: 0 @h-spacing-sm;
    background-color: @fill-base;
    font-size: @font-size-headline;
    color: @brand-primary;
    &:after {
        .setBottomLine(@fill-base);
    }
    &_fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: @navbar-zindex;
        + div {
            margin-top: @navbar-height;
        }
    }
    &_dark {
        color: @color-text-base-inverse;
        background-color: @brand-primary;
        .@{navbarPrefixCls}_center {
            color: @color-text-base-inverse;
        }
        a {
            color: @color-text-base-inverse;
        }
        &:after {
            .setBottomLine(@brand-primary);
        }
    }
    &_left,
    &_right {
        display: flex;
        flex: 1;
        flex-shrink: 0;
        align-items: center;
        justify-content: flex-start;
        padding: 0 @h-spacing-md;
        a {
            display: flex;
            align-items: center;
            justify-content: center;
            .setHeight(@navbar-height);
        }
        i,
        svg,
        img {
            width: @icon-size-md;
            .setHeight( @icon-size-md);
        }
    }
    &_right {
        justify-content: flex-end;
    }
    &_center {
        display: flex;
        flex-shrink: 10;
        align-items: center;
        width: 50%;
        font-size: @font-size-display-sm;
        color: @color-text-base;
        justify-content: center;
        .textOverflow();
    }
}